package com.microcore.service.asserts.impl;

import com.microcore.service.AssertService;
import com.microcore.service.asserts.model.AssertModel;

/**
 * @author LeiZhenYang
 * @date 2019.01.10
 */
public class Main {
    public static void main(String[] args) {
        AssertModel model = new AssertModel();
        model.setValue("1.133");
        //System.out.println(new GreaterEqualAssert().run("1.2", model));
        String a = "{\"className\":\"service.IntegrationTestService\",\"test\":{\"value1\":\"str\",\"value2\":2,\"value3\": null,\"value4\": \"1\" }}";
        //String b = "[{\"key\":\"test.value2\",\"value\":\"3\",\"condition\":0,\"type\":\"Number\"}]";
        //String b = "[{\"key\":\"test.value3\",\"condition\":8,\"type\":\"String\"}]";
        String b = "[{\"key\":\"test.value4\",\"condition\":9,\"type\":\"STRING\"}]";
        System.out.println(AssertService.toAssert(a, b));
    }
}
